package com.kashow.bean.message.unread.chat;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.kashow.bean.BaseBean;

/**
 * Created by yybs on 16/11/14.
 */

public class BaseChat extends BaseBean implements MultiItemEntity {
    public static final int MESSAGE_SEND = 1;
    public static final int MESSAGE_RECEIVE = 2;

    private int itemType;

    private ChatUser from;
    private ChatUser to;
    private String createdAt;

    public ChatUser getFrom() {
        return from;
    }

    public void setFrom(ChatUser from) {
        this.from = from;
    }

    public ChatUser getTo() {
        return to;
    }

    public void setTo(ChatUser to) {
        this.to = to;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }
}
